package net.hn.hnms.biz.shipped.company.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import net.hn.hnms.biz.shipped.company.service.CompanyService;
import net.hn.hnms.biz.shipped.vo.TransportStatisticVO;
import net.hn.hnms.sys.common.core.domain.R;
import net.hn.hnms.sys.common.core.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = " 发运管理模块公司端", tags = {"发运管理公司端"})
@RestController
@RequestMapping("/company/shipped")
public class CompanyController  extends BaseController {

    @Autowired
    private CompanyService companyService;


    @ApiOperation("运销统计合计公司端")
    @GetMapping("/bigscreen/transportByCompanyCodeOrMineCodeOrName")
    public R<TransportStatisticVO> transportByCompanyCodeOrMineCodeOrName(String date,String companyCode,  @ApiParam(value = "煤矿编码") String mineCode) {
        return R.ok(companyService.transportForBigScreenByCompanyCodeOrMineCodeOrName(date,companyCode,mineCode));
    }
}
